import React from "react";
import { useRoutes } from "react-router";
import router from "./router";
import WithRouter from "./components/Hoc/withRouter";
const App: React.FC = () => {
  const el = useRoutes(router);
  return <div>{el}</div>;
};

export default WithRouter(App);
